package cn.tedu.ivos.base.exception;

import cn.tedu.ivos.base.response.StatusCode;
import jdk.nashorn.internal.objects.annotations.Getter;

//自定义业务层异常类
public class UserNotFoundException {
    @Getter
    private StatusCode statusCode;

    public UserNotFoundException(String 用户名不存在) {
        this.statusCode = StatusCode.USERNAME_ERROR;
    }

    public void ServiceException(StatusCode statusCode){
        this.statusCode = statusCode;
    }
}
